import request from '@/utils/request'

// 查询案卷信息列表
export function listArchive(query) {
  return request({
    url: '/system/archive/list',
    method: 'get',
    params: query
  })
}

// 查询案卷信息详细
export function getArchive(archiveId) {
  return request({
    url: '/system/archive/' + archiveId,
    method: 'get'
  })
}

// 新增案卷信息
export function addArchive(data) {
  return request({
    url: '/system/archive',
    method: 'post',
    data: data
  })
}

// 修改案卷信息
export function updateArchive(data) {
  return request({
    url: '/system/archive',
    method: 'put',
    data: data
  })
}

// 删除案卷信息
export function delArchive(archiveId) {
  return request({
    url: '/system/archive/' + archiveId,
    method: 'delete'
  })
}
